<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>完整库使用 - layui</title>

  <link rel="stylesheet" href="../dist/css/layui.css">

  <style>
    body{padding: 10px;}
  </style>
  
</head>
<body>

</body>
</html>
<script src="../src/layui.js"></script>
<script>
  layui.config({base:'public/js/layui/ext/'}).extend({mod1:'mod1'});
  layui.use(['mod1'],function(){

    console.log(layui.mod1.a);
    layui.mod1.sayHi('123');
    




  });
</script>